<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2017/12/29
 * Time: 18:33
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait StandardTrait
{
    use BaseTrait;

    // 登陆者Session
    protected $loginSession;
    // 规格名称
    protected $name;
    // 规格ID
    protected $standard_id;
    // 新的排序字符串
    protected $new_sort_str;
    // 分类ID
    protected $category_id;


    public function __construct(Request $request)
    {
        $this->loginSession = $request->input('loginSession', '');
        $this->name = $request->input('name', '');
        $this->standard_id = $request->input('standard_id', 0);
        $this->new_sort_str = $request->input('new_sort_str', '');
        $this->category_id = $request->input('category_id', 0);
    }
}